package com.zcz.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 王卫帅
 * umeng消息推送接口，供外部调用
 */
@RequestMapping("uMengPush")
@FeignClient(name = "umengpush-service")
public interface UMengClient {
    /**
     *  Android  iOS  单播 或者 列播
     * @return
     */
    @GetMapping("/sendUnicast")
    ResponseEntity<Void> sendUnicast(@RequestParam("userId") String userId, @RequestParam("template") String template);

    /**
     * Android  ios 广播发送
     * @return
     */
    @PostMapping("/sendBroadcast")
    ResponseEntity<String> sendBroadcast(@RequestParam("template") String template);

    }

